{extend name="layout/base" /}

{block name="title"}入驻人联系方式 - 商家入驻 - {mall:config name="mall.sitename"/}{__block__}{/block}
{block name="meta"}
{__block__}
<link rel="stylesheet" href="__ADDON__/__STYLE__/css/shopapply.css">
<link rel="stylesheet" href="__CDN__/assets/libs/nice-validator/dist/jquery.validator.css">
<link rel="stylesheet" href="__CDN__/assets/libs/bootstrap-daterangepicker/daterangepicker.css">
<style>
    ul.list-inline {
        border-bottom: none;
    }
</style>
{/block}

{block name="main"}
<div class='container' id="content-container">
    <div id="stepflex" class="stepflex">
        <dl class="first doing">
            <dt class="s-num">1</dt>
            <dd class="s-text">签订入驻协议</dd>
            <dd></dd>
        </dl>
        <dl class="normal doing">
            <dt class="s-num">2</dt>
            <dd class="s-text">入驻人联系方式</dd>
            <dd></dd>
        </dl>
        <dl class="normal doing">
            <dt class="s-num">3</dt>
            <dd class="s-text">公司证照信息</dd>
        </dl>
        <dl class="normal doing">
            <dt class="s-num">4</dt>
            <dd class="s-text">财务及基本信息</dd>
        </dl>
        <dl class="normal doing">
            <dt class="s-num">5</dt>
            <dd class="s-text">店铺信息</dd>
        </dl>
        <dl class="last">
            <dt class="s-num1">6</dt>
            <dd class="s-text1">入驻审核</dd>
        </dl>
    </div>
    <div class='mall-clear'></div>
    <div class='main-head'>店铺信息</div>
    <div class='apply-box'>
        <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST"
              action="/addons/mall/shop/joinStep5">
            {:token()}
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text"
                           value="{$apply.name}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Shopimg')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="input-group">
                        <input id="c-shopimg" data-rule="required" class="form-control" size="50"
                               name="row[shopimg]" type="text" value="{$apply.shopimg}">
                        <div class="input-group-addon no-border no-padding">
                            <span><button type="button" id="plupload-shopimg" class="btn btn-danger plupload"
                                          data-input-id="c-shopimg"
                                          data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                          data-multiple="false" data-preview-id="p-shopimg"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                            <span><button type="button" id="fachoose-shopimg" class="btn btn-primary fachoose"
                                          data-input-id="c-shopimg" data-mimetype="image/*" data-multiple="false"><i
                                    class="fa fa-list"></i> {:__('Choose')}</button></span>
                        </div>
                        <span class="msg-box n-right" for="shopimg"></span>
                    </div>
                    <ul class="row list-inline plupload-preview" id="p-shopimg"></ul>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Goodscat_ids')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="checkbox">
                        {foreach name="goodsCatList" item="vo"}
                        <label for="c-goodscat_ids-{$key}"><input id="c-goodscat_ids-{$key}"
                                                                  name="row[goodscat_ids]" type="checkbox" value="{$key}" {in
                                                                  name="key" value="$apply.goodscat_ids" }checked{/in}
                            /> {$vo.name}</label>
                        {/foreach}
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Shopqq')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-shopQQ" class="form-control" name="row[shopQQ]" type="text"
                           value="{$apply.shopQQ}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Shopwangwang')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-shopWangWang" class="form-control" name="row[shopWangWang]" type="text"
                           value="{$apply.shopWangWang}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Invoiceis')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="radio">
                        <label>
                            <input type='radio' value='1' id="c-invoiceisis-1" name='row[invoiceis]' class='a-ipt'
                                   onclick='javascript:showHide(1,"#invoiceRemarksTr")' {if $apply['invoiceis']==1}checked{/if}>是
                        </label>
                        <label>
                            <input type='radio' value='0' id="c-invoiceisis-0" name='row[invoiceis]' class='a-ipt'
                                   onclick='javascript:showHide(0,"#invoiceRemarksTr")' {if $apply['invoiceis']==0}checked{/if}>否
                        </label>
                    </div>
                </div>
            </div>
            <div class="form-group" id='invoiceRemarksTr' {if !$apply[
            'invoiceis']}style="display:none"{/if} >
            <label class="control-label col-xs-12 col-sm-2">{:__('Invoiceremarks')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-invoiceRemarks" class="form-control" name="row[invoiceRemarks]" type="text"
                       value="{$apply.invoiceRemarks}">
            </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Freight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-freight" class="form-control" name="row[freight]" type="number" value="{$apply.freight}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Servicestarttime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="col-xs-12 col-sm-4"><input id="c-serviceStartTime" data-rule="required"
                                                    class="form-control datetimepicker"
                                                    data-date-format="HH:mm:ss" data-use-current="true"
                                                    name="row[serviceStartTime]" type="text"
                                                    value="{$apply.serviceStartTime}" data-tip=""
                                                    data-rule="required time"></span>
            <span class="col-xs-12 col-sm-1 text-center"> - </span>
            <span class="col-xs-12 col-sm-4"><input id="c-serviceEndTime" data-rule="required"
                                                    class="form-control datetimepicker"
                                                    data-date-format="HH:mm:ss" data-use-current="true"
                                                    name="row[serviceEndTime]" type="text"
                                                    value="{$apply.serviceEndTime}" data-tip=""
                                                    data-rule="required time"></span>
        </div>
    </div>
    <div class="form-group layer-footer agreement-bottom">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button onclick='javascript:location.href="/addons/mall/shop/joinstep4"' type="reset"
                    class="btn btn-default btn-embossed">上一步
            </button>
            <button onclick='javascript:location.href="/addons/mall/shop/joinsuccess"' type="submit"
                    class="btn btn-success btn-embossed disabled">下一步
            </button>
        </div>
    </div>
    </form>
</div>
</div>
{/block}

{block name="js"}
{__block__}
{/block}